package com.mt.roll.wms.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @Desc: ""
 * @Author: caixiang
 * @DATE: 2021/1/11 13:03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "设备物料bom 参数", description = "设备物料bom 参数")
public class EquipmentBomParam {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id，只在update的时候传，add不用传", required = true, example = "1")
    private Long id;

    /**
     * 设备ID
     */
    @ApiModelProperty(value = "设备id", required = true ,example = "1")
    @NotNull(message = "设备id 不能为空")
    private Long equipmentId;

    /**
     * 编码
     */
    @ApiModelProperty(value = "编码", example = "code1")
    private String code;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", example = "名称1")
    private String name;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", example = "描述1")
    private String description;

    /**
     * 启用状态:0 、停用，1、启用
     */
    @ApiModelProperty(value = "启用状态:0 、停用，1、启用", example = "1")
    private Integer enabled;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", example = "备注1")
    private String remark;
}
